﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MaxLeaf.Platform.Contract;
using MaxLeaf.Platform.DALImplementation;
using MaxLeaf.Platform.DataContract;
using CommonsLib.Utility;
using CommonsLib.Settings;
using MaxLeaf.Platform.Functions;
using MaxLeaf.Platform.BRL;
using MaxLeaf.Platform.Commons;
using CommonsLib.DB;

namespace MaxLeaf.Platform.BLLImplementation
{
    public class mDepartmentBLL :BaseBLL 
    {
        public mDepartmentBLL()
        {
            
        }
        
        public override string FinterIDFields
        {
            get
            {
                return string.Format("{0},{1}", "DepId", (int)FinterIDType.Department);
            }
        }


        internal double GetMonthAppliedAmt(int intDepID)
        {
            using (DBAccess dbcon = DataFunc.GetDBAccessByDataModelType(typeof(mDepartmentDataModel)))
            {
                return CvtFunc.ToDouble(DataFunc.GetFieldValue(dbcon, "mDepartment", "MonthAppliedAmt", new Dictionary<string, object> { { "DepID", intDepID } }));
            }
        }
    }
}
